<template>
  <c-body>
    <div style="display: flex;flex-direction: column">
      <div style="display: flex;margin-bottom: 10px;">
        <span style="margin-right: 20px;">紫色：c-button type="purple"</span>
        <c-button type="purple" :loading="true">哈哈哈</c-button>
      </div>
      <div style="display: flex;margin-bottom: 10px;">
        <span style="margin-right: 20px;">黑色：c-button type="black"</span>
        <c-button type="black">哈哈哈</c-button>
      </div>
      <div style="display: flex;margin-bottom: 10px;">
        <span style="margin-right: 20px;">绿色：c-button type="success" icon="plus-outlined"</span>
        <c-button type="success" icon="plus-outlined" @click="test">哈哈哈</c-button>
      </div>
      <div style="display: flex;margin-bottom: 10px;">
        <span style="margin-right: 20px;">橙色：c-button type="warning"</span>
        <c-button type="warning">哈哈哈</c-button>
      </div>
      <div style="display: flex;margin-bottom: 10px;">
        <span style="margin-right: 20px;">红色：c-button type="error"</span>
        <c-button type="error">哈哈哈</c-button>
      </div>
      <div style="display: flex;margin-bottom: 10px;">
        <span style="margin-right: 20px;">蓝色：c-button type="primary"</span>
        <c-button type="primary">哈哈哈</c-button>
      </div>
      <div style="display: flex;margin-bottom: 10px;">
        <span style="margin-right: 20px;">Text：c-button type="text"</span>
        <c-button type="text">哈哈哈</c-button>
      </div>
      <div style="display: flex;margin-bottom: 10px;">
        <span style="margin-right: 20px;">Link：c-button type="link"</span>
        <c-button type="link">哈哈哈</c-button>
      </div>
    </div>
  </c-body>
</template>

<script>
export default {
  name: 'ViewsHome',
  setup() {
    const test = () => {
      console.log('这个家伙真的会喷火')
    }
    return { test }
  }
}
</script>

<style scoped></style>